import { createStore, applyMiddleware } from 'redux'
import createSagaMiddleware from 'redux-saga'
import { loginSaga } from './saga/login'
import Reducer from './reducer/home'

const SagaMiddleware = createSagaMiddleware()

const store = createStore(Reducer, applyMiddleware(SagaMiddleware))

SagaMiddleware.run(loginSaga)

export default store
